package request

import "good.house/internal/constan"

type RegisterRequest struct {
	Username string           `json:"username" binding:"required,min=1,max=32"`
	Password string           `json:"password" binding:"required,min=6,max=32"`
	Mobile   string           `json:"mobile" binding:"required,len=11"`
	UserType constan.UserType `json:"userType" binding:"required,oneof=0 1"`
}

type LoginRequest struct {
	Username string `json:"username" binding:"required,min=1,max=32" comment:"用户名"` // 用户名
	Password string `json:"password" binding:"required,min=6,max=32" comment:"密码"`  // 密码
}
